package com.kmu.lwl.entiy;

import java.util.Objects;

public class Login {
    private int loginId;
    private String loginName;
    private String loginPassword;

    public int getLoginId() {
        return loginId;
    }

    public void setLoginId(int loginId) {
        this.loginId = loginId;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getLoginPassword() {
        return loginPassword;
    }

    public void setLoginPassword(String loginPassword) {
        this.loginPassword = loginPassword;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Login login = (Login) o;
        return loginId == login.loginId &&
                Objects.equals(loginName, login.loginName) &&
                Objects.equals(loginPassword, login.loginPassword);
    }

    @Override
    public int hashCode() {
        return Objects.hash(loginId, loginName, loginPassword);
    }
}
